package can.bishe.modules.exam.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 考试信息
 * 
 * @author can
 * @email 822024417@qq.com
 * @date 2021-04-28 23:03:48
 */
@Data
@TableName("exam_info")
public class ExamInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long examId;
	/**
	 * 考试标题
	 */
	private String examTitle;
	/**
	 * 考试试卷
	 */
	private Long examTpid;
	/**
	 * 考试时间
	 */
	@DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
	@JsonFormat(pattern = "yyyyMMdd HH:mm:ss",timezone="GMT+8")
	private Date examTime;
	/**
	 * 考试部门
	 */
	private Long examDept;
	/**
	 * 部门名称
	 */
	@TableField(exist = false)
	private String deptName;
	/**
	 * 试卷名称
	 */
	@TableField(exist = false)
	private String tpName;
}
